import Layout from '@/layout'

const distributorAfterSalesRouter = {
  path: '/distributor/after-sales',
  component: Layout,
  redirect: 'noRedirect',
  alwaysShow: true,
  name: 'DistributorAfterSales',
  meta: {
    title: '售后管理',
    roles: ['distributor', 'admin']
  },
  children: [
    {
      path: 'management',
      component: () => import('@/views/distributor/after-sales/management-list'),
      name: 'DistributorAfterSalesManagement',
      meta: { title: '售后管理(TBD)', noCache: false }
    },
    {
      path: 'news',
      component: () => import('@/views/distributor/after-sales/news-list'),
      name: 'DistributorAfterSalesNews',
      meta: { title: '售后新消息(TBD)', noCache: false }
    },
    {
      path: 'my-receipt',
      component: () => import('@/views/distributor/after-sales/my-receipt-list'),
      name: 'DistributorMyReceipt',
      meta: { title: '我的发票(TBD)', noCache: false }
    },
    {
      path: 'order-change-apply',
      component: () => import('@/views/distributor/after-sales/order-change-apply-list'),
      name: 'DistributorAfterSalesOrderChangeApply',
      meta: { title: '订单修改申请查询(TBD)', noCache: false }
    },
    {
      path: 'feedback',
      component: () => import('@/views/distributor/after-sales/feedback-list'),
      name: 'DistributorFeedback',
      meta: { title: '反馈售后平台(TBD)', noCache: false }
    },
    {
      path: 'compensation-apply',
      component: () => import('@/views/distributor/after-sales/compensation-apply-list'),
      name: 'DistributorCompensationApply',
      meta: { title: '申请打标补偿(TBD)', noCache: false }
    },
    {
      path: 'refund-apply',
      component: () => import('@/views/distributor/after-sales/refund-apply-list'),
      name: 'DistributorRefundApply',
      meta: { title: '申请错退(TBD)', noCache: false }
    }
  ]
}

export default distributorAfterSalesRouter
